﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MentalAlchemy.Compounds
{
	/// <summary>
	/// Control for setting min and max integer values for some entity.
	/// </summary>
	public partial class MinMaxControl : UserControl
	{
		#region - Public properties. -
		/// <summary>
		/// Min value.
		/// </summary>
		public int Min
		{
			get{ return (int)MinNumeric.Value;}
			set { MinNumeric.Value = value; }
		}

		/// <summary>
		/// Max value.
		/// </summary>
		public int Max
		{
			get { return (int)MaxNumeric.Value; }
			set { MaxNumeric.Value = value; }
		}

		/// <summary>
		/// Step size.
		/// </summary>
		public int Step
		{
			get { return (int)StepNumeric.Value; }
			set { StepNumeric.Value = value; }
		}
		#endregion

		#region - Constructor. -
		public MinMaxControl()
		{
			InitializeComponent();

			Min = 1;
			Max = 100;
			Step = 1;
		} 
		#endregion
	}
}
